const state = {
  userInfo: 'zsk'
}

// getters
const getters = {
  userInfo: state => {
    return state.userInfo
  }
}

// actions
const actions = {
  setUserInfo (context, query) {
    context.commit('SET_USERINFO', query)
  }
}

// mutations
const mutations = {
  SET_USERINFO (state, query) {
    state.userInfo = query
  }
}

export default {
  state,
  getters,
  actions,
  mutations
}
